package com.ml.mall.bean.req.category;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *   @description    :description 
 *   @author         :zxm
 *   @date           :2021/5/14
 *   @version        :1.0
**/
@ApiModel(value = "目录新增model")
@Data
@Accessors(chain = true)
public class CategoryNewDto {

    @ApiModelProperty(value = "目录名称")
    @NotBlank(message = "目录名称不能为空")
    private String categoryName;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer indexNo;

    @ApiModelProperty(value = "产业ID")
    @NotNull(message = "industryId cant null")
    private Integer industryId;

    @ApiModelProperty(value = "新增：目录图片")
    @NotBlank(message = "目录图片不能为空")
    private String picUrl;

}
